package kr.hkit.powerjava.work;

public class StackTest {
	public static void main(String[] args) {
		int size = 3;
		Stack stack = new Stack(3);
		stack.push("a");
		stack.prnStack();
		stack.push("b");
		stack.prnStack();
		
		for(int i = 0; i < 3; i++) {
			System.out.println("pop " + stack.pop());
				stack.prnStack();
		}	//isEmpty
		
		for(int i = 97; i < size + 98; i++) {
			stack.push(String.format("%c" , i));
				stack.prnStack();
		}
	}
}
